luci-base: shorten button text to Apply checked
authorFlorian Eckert <[email protected]>
Thu, 6 Mar 2025 09:33:16 +0000 (10:33 +0100)
committerPaul Donald <[email protected]>
Thu, 6 Mar 2025 17:21:32 +0000 (11:21 -0600)
The button text is very long and breaks the css layout, so it is changed to
'Apply checked'. This also has the advantage that the button is structured
in the same way as the other one, which is called 'Appply unchecked'.

This enhances the look and feel

Signed-off-by: Florian Eckert <[email protected]>
modules/luci-base/htdocs/luci-static/resources/ui.js

index cbb28a3bcfc0cad1ff074cbad9ebc1bed3b601e6..e277bbe1b475e87ec4a97a1aab068ff7a6b01e80 100644 (file)
@@ -4899,7 +4899,7 @@ const UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
                                                        E('button', {
                                                                'class': 'btn cbi-button-action important',
                                                                'click': resolveFn.bind(null, true)
-                                                       }, [ _('Apply, reverting in case of connectivity loss') ]), ' ',
+                                                       }, [ _('Apply checked') ]), ' ',
                                                        E('button', {
                                                                'class': 'btn cbi-button-negative important',
                                                                'click': resolveFn.bind(null, false)